package com.summer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
// TODO  Filter、Servlet组件需要扫描
@ServletComponentScan
@EnableTransactionManagement //TODO  springBoot项目事务处理只需要在业务层加@Tansactional注解和在此处加@EnableTransactionManagement注解即可
@EnableCaching
public class ReggieApp {
    public static void main(String[] args) {
        SpringApplication.run(ReggieApp.class, args);
        log.info("项目启动成功");
    }
}
